package com.atguigu.springcloud.com.atguigu.springcloud.controller;

import com.atguigu.springcloud.com.atguigu.springcloud.serveice.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: 默苍璃
 * @date: 2021-12-24 15:16
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider messageProvider;

    @GetMapping(value = "/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }

}
